import java.io.FileInputStream;


public class Main {

	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception {
		byte password[]=new byte[]{'a', 'a', 'a'};
		
		byte salt[]=new byte[64];
		byte string[]=new byte[4];
		int lenSalt=0;
		int lenString=0;
		FileInputStream in=new FileInputStream("D:/Portables/TrueCrypt/prova");
		lenSalt=in.read(salt);
		lenString=in.read(string);
		in.close();
		
		System.out.print("Salt:");
		Util.printHexArray(salt, System.out);
		
		byte key[]=Crypt.getPBKDF2(salt, password, 2000, Crypt.ALGORITHM_RIPEMD160);
		
		System.out.print("Header key: ");
		Util.printHexArray(key, System.out);
		
		//  I Have Header key... Now I need the XTS algorithm for decrypt the first 512 byte of the volume
		
		
	}
	
	
	

}
